//
//  SelectionDataTool.m
//  LoveTravel
//
//  Created by MS on 16-1-20.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "SelectionDataTool.h"

@implementation SelectionDataTool
+(void)getSeletionDataWithPages:(NSInteger)pages Succuss:(void(^)(NSArray * data))succuss failure:(void (^)( NSError *error))failure
{
    
    NSString * url = Selection_URL(pages);
    
    [LGHttpTool GET:url parameters:nil success:^(id responseObject) {
        
        SelectionModel * selData = [SelectionModel mj_objectWithKeyValues:responseObject];
        NSArray * data = selData.recomms;
        if (succuss) {
            succuss(data);
        }
        
        
    } failure:^(NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
    
    
}
@end
